package study.designpattern.observer;

public class Subscriber {
    String name;
    
    
    public Subscriber(String name) {
        super();
        this.name = name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public void receive(){
        System.out.println(name + " received info");
    }
}
